package org.example.service;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.client.WebClient;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

/**
 * WebClientConfig
 *
 * @author: wangchao
 * @Date: 2025/6/10 20:26
 * @since 7.0.0-RC2
 **/
@Configuration
public class WebClientConfig {
    @Bean
    public ScheduledExecutorService newScheduledThreadPool() {
        return Executors.newScheduledThreadPool(3);
    }
    @Bean
    public WebClient webClient() {
        return WebClient.builder().build();
    }
}
